import request from '@/utils/request'

let BannerApi = {
  getList(data, errorback) {
    return request._post('/shop/plus.banner.banner/index', data, errorback);
  },
  addBanner(data, errorback) {
    return request._post('/shop/plus.banner.banner/add', data, errorback);
  },
  /*编辑文章*/
  editBanner(data, errorback) {
    return request._post('/shop/plus.banner.banner/edit', data, errorback);
  },
  toEditBanner(data, errorback) {
    return request._get('/shop/plus.banner.banner/edit', data, errorback);
  },
  /*删除文章*/
  deleteBanner(data, errorback) {
    return request._post('/shop/plus.banner.banner/delete', data, errorback);
  }
}
export default BannerApi;
